﻿using System.Data;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Represents a named <see cref="IDbConnection"/>
    /// </summary>
    /// <remarks>
    /// This interface is implemented by <see cref="IDbConnection"/> proxies.
    /// </remarks>
    public interface INamedConnection
    {
        /// <summary>
        /// Gets or sets the configured name of the <see cref="IDbConnection"/>        
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// Gets a <see cref="bool"/> value that indicates if this a interally created connection.
        /// </summary>
        bool IsInternal { get; set; }
    }
}
